
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<div id="searchDiv" class="ibox " style="display: none;">
	<div class="ibox-title collapse-link" style="cursor: pointer;"
		 title="展开/收起查询条件">

		<h5>查询条件</h5>
		<div class="ibox-tools"></div>

	</div>

	<form action="web/poAgreementHeadStop/getPoHeadList" method="get">
		<div class="ibox-content m-b-sm border-bottom">
			<div class="row">
				<div class="col-sm-4">
					<div class="form-group">
						<label class="control-label" for="poName">合同名称</label>
						<input type="text" id="poName" name="poName" value="${param.poName}" class="form-control">
					</div>
				</div>
				<div class="col-sm-4">
                    <div class="form-group">
                        <label class="control-label">签订日期</label>
                        <div>
                            <div class="input-group date" style="width: 48%;float: left">
                                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                <input id="startDate" name="startDate" type="text" class="form-control" value="${param.startDate}" autocomplete="off">
                            </div>
                            <div class="input-group date" style="width: 48%;float: left">
                                <span style="line-height: 30px;">-</span><span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                <input id="endDate" name="endDate" type="text" class="form-control" value="${param.endDate}" autocomplete="off">
                            </div>
                        </div>
                    </div>
                </div>
				<div class="col-sm-4">
					<div class="form-group">
						<label class="control-label" for="projectCode">合同编码</label>
						<input type="text" id="poHeadCode" name="poHeadCode" value="${param.poHeadCode}" class="form-control">
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-4">
					<div class="form-group">
						<label class="control-label" for="poHeadCode">合同单号</label>
						<input type="text" id="projectCode" name="projectCode" value="${param.projectCode}" class="form-control">
					</div>
				</div>
				<div class="col-sm-4">
					<div class="form-group">
						<label class="control-label" for="orgCode">实施单位</label>
						<input type="text" id="orgCode" name="orgCode" value="${param.orgCode}" class="form-control">
					</div>
				</div>
				<div class="col-sm-4">
					<div class="form-group">
						<label class="control-label" for="projectCode">合同金额</label>
						<input type="text" id="poaAmount" name="poaAmount" value="${param.poaAmount}" class="form-control">
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-12 text-right">
					<div class="form-group">
						<button type="submit" class="btn btn-w-m btn-primary">查询</button>
					</div>
				</div>
			</div>
		</div>

		<%-- 隐藏字段 --%>
		<input type="hidden" name="page" value="1">
	</form>
</div>

<!-- select2 -->
<script src="js/plugins/select2/select2.full.min.js"></script>

<script>
	$(document).ready(function(){
		//设置日期插件
		$('#startDate').datepicker({
			todayBtn : "linked",
			keyboardNavigation : true,
			forceParse : true,
			calendarWeeks : false,
			autoclose : true,
			format: 'yyyy-mm-dd',
			language: 'zh-CN',
		});

		$('#endDate').datepicker({
			todayBtn : "linked",
			keyboardNavigation : true,
			forceParse : true,
			calendarWeeks : false,
			autoclose : true,
			format: 'yyyy-mm-dd',
			language: 'zh-CN',
		});
		//初始化select2
		$('.select2').select2({width: "100%"});
	});
</script>
